//引入请求函数
import { http } from "@/utils/http";

//引入类型约束
import type { goodsDetailResponse } from "@/types/goods";

//获取商品详情
export const reqGoodsDetail = (id:string) => {
    return http<goodsDetailResponse>({
        url:"/goods",
        method:"GET",
        data:{id}
    })
}